import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import './assets/css/common.css';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import store from './store'
import "./router/permission.js"
import './utils/init' 
import Router from 'vue-router'
import { Chart, registerables } from 'chart.js';

// 注册所有 Chart.js 模块
Chart.register(...registerables);

Vue.use(ElementUI);
Vue.config.productionTip = false

const routerPush = Router.prototype.push;
Router.prototype.push = function push(location) {
  return routerPush.call(this,location).catch(error => error);
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
